<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents'); ?>
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/multi-select-metro.css" rel="stylesheet" />
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url');?>js/validator.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/bootstrap.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/chosen.jquery.min.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jquery.multi-select.js"></script>   
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/select2.min.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jquery.input-ip-address-control-1.0.min.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/date.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/app.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/form-components.js"></script>
<script type="text/javascript">
$(function(){
	App.init();
	FormComponents.init();
});
</script>
<table width="100%" cellspacing="0" class="list_table">
	<tr>
		<th>名称</th>
		<td><?=$provider['name'];?></td>
		<th>跟进人员</th>
		<td><?=$provider['follow_username']?></td>
	</tr>
	<tr>
		<th>支付方式</th>
	    <td><?=$provider['payment_method'];?></td>
	    <th>付款期限（天）</th>
	    <td><?=$provider['pay_deadline'];?></td>
	</tr>
	<tr>
		<th>联系人</th>
		<td ><?=$provider['contact_person'];?></td>
		<th>QQ</th>
		<td><?=$provider['qq'];?></td>
	</tr>
	<tr>
		<th>传真</th>
		<td><?=$provider['fax'];?></td>
		<th>E-mail</th>
		<td><?=$provider['email'];?></td> 
	</tr>
	<tr>
		<th>电话</th>
		<td><?=$provider['phone'];?></td>
		<th>手机</th>
		<td><?=$provider['cellphone'];?></td>
	</tr>
	<tr>
		<th>通讯地址</th>
		<td colspan="3" align="left"><?=$provider['address'];?></td>
	</tr>
	<tr>
		<th>绑定分类</th>
		<td colspan="3" align="left">
			<?foreach ($categories as $k => $c):?>
			<?foreach ($c['children'] as $kc => $cc):?>
			<?if (in_array($kc, $provider['mapping'])) echo $cc['name'] . '<br />'?>
			<?endforeach;?>
			<?endforeach;?>
		</td>
	</tr>
</table>
<?php $this->_endblock();?>